package com.artislong.chatmemory;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 陈敏
 * @version ChatMessages.java, v 1.0 2025 05 19 22:49 chenmin Exp $
 * Created on 2025 05 19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document("chat_messages")
public class ChatMessages {

    @Id
    private ObjectId id;

    private int messageId;

    /**
     * 存储当前聊天记录列表的json字符串
     */
    private String content;
}
